﻿
//************************************************************************************************************
//文件名称(File Name)：ProductAllAnalyse.aspx
//功能描述(Description)：产品分析
//数据表(Tables)：
//作者(Author)： jiangyong
//日期(Create Date)：20130301
//参考文档(Reference)(可选)：
//引用(Using) (可选)﹕
//************************************************************************************************************


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using AnalyseCrmMana;
using System.Data;
using System.Text;
namespace AnalyseCRM.Operation
{
    public partial class ProductAllAnalyse : System.Web.UI.Page
    {


        /// <summary>
        ///  add by jy
        ///  add date 2013-2-25
        ///  note: 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        /// <summary>
        /// add by jy
        /// </summary>
        [System.Web.Services.WebMethod]
        public static string buildHtml(string parValueID)
        {
            string strparValueID = parValueID;
            StringBuilder returnValue = new StringBuilder();

            ChartBuildMana chartbm1 = new ChartBuildMana().getChartBuild(parValueID, "admin");
            if (chartbm1 != null)
            {
                returnValue.Append(JsonHelper.ObjectToJson(chartbm1));
            }
            else
            {
                returnValue.Append("NONE");
            }
            return returnValue.ToString();
        }


        /// <summary>
        /// add by jy
        /// </summary>
        /// <param name="prparamValue"></param>
        /// <param name="prparamType"></param>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        [System.Web.Services.WebMethod]
        public static string buildHtmlNew(string parValueID)
        {
            string strparValueID = parValueID;
            StringBuilder returnValue = new StringBuilder();

            ChartBuildMana chartbm1 = new ChartBuildMana().getChartBuildNew(parValueID, "admin");
            if (chartbm1 != null)
            {
                returnValue.Append(JsonHelper.ObjectToJson(chartbm1));
            }
            else
            {
                returnValue.Append("NONE");
            }
            return returnValue.ToString();
        }

    }

}